<?php
if (isset($shoeShowList) && count($shoeShowList) > 0) {
    foreach ($shoeShowList as $shoeShowMsg) {
        $shoeShowImg = make_img_name::make_img_mini_name(explode(';', $shoeShowMsg->Picture, 2)[0]);
        if (count($shoeShowImg) > 0) {
            $isRecommend = $myShoeShow->show_recommend_check($shoeShowMsg->Id);
            if ($isRecommend === true) $recommendIconEx = ''; else $recommendIconEx = '-o';
            $isCommend = $myShoeShow->show_comment_check($shoeShowMsg->Id);
            if ($isCommend === true) $commendIconEx = ''; else $commendIconEx = '-o';
            ?>
            <li class="am-list-item" data-id="<?= $shoeShowMsg->Id ?>" style="padding-left: 25px">
                <a
                        data-forward="controller=shoe_show&shoe_show_id=<?= $shoeShowMsg->Id ?>"
                        onclick="act_content(this)">
                    <div class="am-list-thumb web-work-list-img" style="display: inline-block; vertical-align: top;">
                        <div class="app-img-flex"
                             style="background-image:url(<?= $CfgPara->httproot ?>/shoe_show_pic/<?= $shoeShowImg; ?>);">
                        </div>
                    </div>
                    <div style="width: 20px; display: inline-block;"></div>
                    <div class="am-list-main" style="display: inline-block; vertical-align: top;">
                        <div class="am-list-item-hd">
                            <span class="web-main-color"><?= $shoeShowMsg->UserName; ?></span>:
                            <span class="web-tittle-color"><?= $shoeShowMsg->Introd; ?></span>
                        </div>
                        <div class="am-list-item-text am-text-xs" style="padding-top: 2px;padding-bottom: 5px;">
                            <?= substr($shoeShowMsg->ReleaseDt, 0, 16) ?>
                        </div>
                        <div class="am-list-item-text">
                            <?php if ($shoeShowMsg->State == 1) { ?>
                            <i class="am-icon am-icon-heart<?= $recommendIconEx ?> am-icon-fw"></i><?= formatDataSize($shoeShowMsg->UpCount) ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <i class="am-icon am-icon-comment<?= $commendIconEx ?> am-icon-fw"></i><?= formatDataSize($shoeShowMsg->CommentCount) ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <i class="am-icon am-icon-eye am-icon-fw"></i><?= formatDataSize($shoeShowMsg->ViewCount) ?>
                            <?php } else { ?>
                                <i class="am-icon am-icon-edit am-icon-fw"></i>草稿
                            <?php } ?>
                        </div>
                    </div>
                    <div class="am-fr web-gray-color" style="padding-right: 20px; padding-top: 20px;">
                        <i class="am-icon am-icon-ellipsis-h"></i>
                    </div>
                </a>
            </li>
        <?php }
    }
} else //没有内容
{
    if (!isset($InputData['page_change']) || isset($InputData['search_text']))
        require("{$CfgPara->root}/view/warning_nocontent.app.v.php");
}
?>